-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[24.0] Update title of edited PRs only if base ref changed #19183
[24.0] Update title of edited PRs only if base ref changed #19183
Conversation
So does this fire when the pull request was opened or reopened, or edited AND had its base branch changed? |
Yes, if you just change the title or description of the PR, the CI job is skipped. |
But then this doesn't really address the concerns discussed in #19177. Yes, we can fix the title by editing just the title as a separate follow-up edit, after it has been renamed incorrectly by the bot - but only if we remember to do so - which we might not (someone might not even know they should do that). I'm sorry, I still think we should not enable automated renaming on edit until the bot handles all those cases correctly. |
This would obviously be nice to have, but was never part of the initial implementation, so it can't be held against this bugfix.
This PR is an incremental improvement, we don't need to fix all possible scenarios at once since it's nothing mission-critical. Which was also the reasoning when we merged #18835 .
This is fixed by this PR.
This won't happen because this workflow is run only if the target branch matches |
The initial implementation introduced the change that makes these problematic cases possible. I think undoing that change is the obvious way to prevent these cases from happening. That said, if you think the benefits of automating the title format outweigh the potential problems that may cause, I won't object. |
I think for now the best thing to do is that on editing if it is necessary the bot just warn by commenting on the PR. |
This is also a problem when we change the base branch from one release to another release, The version will be duplicated. |
Also: - Update title of reopened PRs too. - Don't unnecessarily checkout the repo.
80e76da
to
09d8695
Compare
That's indeed exactly my point, the title update on
@arash77 I've discussed it above, but if you'd like to work on that, I'd be happy to review it. |
Changing base to 24.2, right? (it updates #18835 which is 24.2) |
Also:
Alternative to #19177 .
How to test the changes?
(Select all options that apply)
License